﻿using System;

namespace Sigil.NonGeneric
{
	public partial class Emit
	{
		/// <summary>
		/// Pushes a pointer to the given local onto the stack.
		///
		/// To create a local, use DeclareLocal.
		/// </summary>
		public Emit LoadLocalAddress(Local local)
		{
			InnerEmit.LoadLocalAddress(local);
			return this;
		}

		/// <summary>
		/// Pushes a pointer to the local with the given name onto the stack.
		/// </summary>
		public Emit LoadLocalAddress(String name)
		{
			InnerEmit.LoadLocalAddress(name);
			return this;
		}
	}
}